﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace MobileManager.Mini
{
    public partial class Mmonitor : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                MM.Model.T_Users userModel;
                if (Session["CurUser"] == null)
                {
                    Response.Redirect("Login.aspx");
                    return;
                }
                else
                {
                    userModel = (MM.Model.T_Users)Session["CurUser"];
                    lbUserInfo.Text = string.Format("{0}，欢迎您！", userModel.UserName);
                }
                //string strUrl = Request.Url.ToString().Replace(Request.Path, "") + Request.ApplicationPath;
                StringBuilder sbHTML = new StringBuilder(500);
                sbHTML.Append("<ul>");
                sbHTML.Append(string.Format("<li class=\"item\" id=\"MonitorIndex\"><a href=\"{0}\">监 控</a></li>", "MonitorIndex.aspx"));
                sbHTML.Append(string.Format("<li class=\"item\" id=\"ReturnSMS\"><a href=\"{0}\">短信返回信息</a></li>", "ReturnSMS.aspx"));
                sbHTML.Append(string.Format("<li class=\"item\" id=\"ReturnIVR\"><a href=\"{0}\">IVR返回信息</a></li>", "ReturnIVR.aspx"));
                sbHTML.Append(string.Format("<li class=\"item\" id=\"ReturnSMSExt\"><a href=\"{0}\">通道返回汇总</a></li>", "ReturnSMSExt.aspx"));
                sbHTML.Append("</ul>");
                llMenu.Text = sbHTML.ToString();
            }
        }
    }
}
